// 引入自行封装的axios
import http from "@/api/http";

export function classList(params) {
  // 返回了promise对象
  return http({
    url: "/admin/xy/clazz/list",
    method: "get",
    params,
  });
}
export function saveClass(params) {
  return http({
    url: "/admin/xy/clazz/save",
    method: "post",
    params,
  });
}
export function delClass(params) {
  return http({
    url: "/admin/xy/clazz/del",
    method: "get",
    params,
  });
}
export function detail(params) {
  return http({
    url: "/admin/xy/clazz/detail",
    method: "get",
    params,
  });
}

export function updateClass(params) {
  return http({
    url: "/admin/xy/clazz/update",
    method: "post",
    params,
  });
}

export default {
  classList,
  saveClass,
  delClass,
  detail,
  updateClass,
};
